package com.xuanwu.shop.other;

import org.junit.Assert;
import org.junit.Test;

import com.xuanwu.shop.service.GoodsServiceInterface;
import com.xuanwu.shop.service.impl.GoodsServiceImpl;

public class GoodsTest {

	private GoodsServiceInterface service = new GoodsServiceImpl();
	
	@Test
	public void testGetByCatId(){
		System.out.println(service.getByCatId(2).size());
	}
	
	@Test
	public void testGetById(){
		Assert.assertNotNull(service.getById("21512315651"));
	}
	
}
